function! CutFileNamesAfterGrepFunction()
  " wrapping is evil
  set nowrap
  " remove all lines that doesn't start with some.abc:12:
  v/\v^.+\.\w+:\d+:/d
  " trim everything after the first colon
  %normal f:d$
  " remove dups
  sort u
endfunction

command! CutFileNamesAfterGrep silent! call CutFileNamesAfterGrepFunction()
